#include "api.h"
#include <stdlib.h>
#include <stdio.h>

struct _S {
    int num;
};


S *c_create(int n) {
    S *p = malloc(sizeof(S));
    p->num = n;
    return p;
}

void c_add(S *s, int n) {
    s->num += n;
}

void c_sub(S *s, int n) {
    s->num -= n;
}

void c_output(S *s) {
    printf("value of s(S): %d\n", s->num);
}

void c_destroy(S *s) {
    free(s);
}
